-- GENERATED SPELL FOR [Gazakroth] --


function spell0_24244(pUnit, Event) --@Firebolt,n/a--
pUnit:FullCastSpellOnTarget(43584,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24244', 500, 1)
end

function Sorts_24244(pUnit, Event)
local choix_sorts_24244 = math.random(0, 0)
if choix_sorts_24244 == 0 then
pUnit:RegisterEvent('spell0_24244', 1, 1)
end
end

function mob24244_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24244', math.random(1500, 3000), 1)
end

function mob24244_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24244_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24244_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24244, 1, 'mob24244_Action')
RegisterUnitEvent(24244, 2, 'mob24244_Leave')
RegisterUnitEvent(24244, 3, 'mob24244_Kill')
RegisterUnitEvent(24244, 4, 'mob24244_Die')
